package com.ylr.user.framework.feign.fallback;

import com.ylr.base.common.po.user.UserPo;
import com.ylr.base.common.tool.Result;
import com.ylr.user.framework.feign.user.YuUserClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-04 11:25:49
 * className: YuUserClientFallback
 * version: 1.0
 * description:
 */
public class YuUserClientFallback implements YuUserClient {

    private static final Logger log = LoggerFactory.getLogger(YuUserClientFallback.class);

    @Override
    public Result<UserPo> check(String userId, String channel, String uri) {
        log.info("userId={}", userId);
        log.info("channel={}", channel);
        log.info("uri={}", uri);
        log.warn("user模块 => 用户权限校验请求失败回调");
        return Result.fail();
    }
}
